YES 0.8140000000000001 H-Termination proof of /home/matraf/haskell/eval_FullyBlown_Fast/List.hs
H-Termination of the given Haskell-Program with start terms could successfully be proven:



HASKELL
  ↳ IPR

mainModule List
  ((partition :: (a  ->  Bool ->  [a ->  ([a],[a])) :: (a  ->  Bool ->  [a ->  ([a],[a]))

module List where
  import qualified Maybe
import qualified Prelude

  partition :: (a  ->  Bool ->  [a ->  ([a],[a])
partition p xs foldr (select p) ([],[]) xs

  
select p x ~((ts,fs)) 
 | p x = 
(x : ts,fs)
 | otherwise = 
(ts,x : fs)


module Maybe where
  import qualified List
import qualified Prelude



IrrPat Reductions:
The variables of the following irrefutable Pattern
~(ts,fs)

are replaced by calls to these functions
select0 (ts,fs) = ts

select1 (ts,fs) = fs



↳ HASKELL
  ↳ IPR
HASKELL
      ↳ BR

mainModule List
  ((partition :: (a  ->  Bool ->  [a ->  ([a],[a])) :: (a  ->  Bool ->  [a ->  ([a],[a]))

module List where
  import qualified Maybe
import qualified Prelude

  partition :: (a  ->  Bool ->  [a ->  ([a],[a])
partition p xs foldr (select p) ([],[]) xs

  
select p x vw 
 | p x = 
(x : select0 vw,select1 vw)
 | otherwise = 
(select0 vw,x : select1 vw)

  
select0 (ts,fsts

  
select1 (ts,fsfs


module Maybe where
  import qualified List
import qualified Prelude



Replaced joker patterns by fresh variables and removed binding patterns.

↳ HASKELL
  ↳ IPR
    ↳ HASKELL
      ↳ BR
HASKELL
          ↳ COR

mainModule List
  ((partition :: (a  ->  Bool ->  [a ->  ([a],[a])) :: (a  ->  Bool ->  [a ->  ([a],[a]))

module List where
  import qualified Maybe
import qualified Prelude

  partition :: (a  ->  Bool ->  [a ->  ([a],[a])
partition p xs foldr (select p) ([],[]) xs

  
select p x vw 
 | p x = 
(x : select0 vw,select1 vw)
 | otherwise = 
(select0 vw,x : select1 vw)

  
select0 (ts,fsts

  
select1 (ts,fsfs


module Maybe where
  import qualified List
import qualified Prelude



Cond Reductions:
The following Function with conditions
select p x vw
 | p x
 = (x : select0 vw,select1 vw)
 | otherwise
 = (select0 vw,x : select1 vw)

is transformed to
select p x vw = select4 p x vw

select2 p x vw True = (select0 vw,x : select1 vw)

select3 p x vw True = (x : select0 vw,select1 vw)
select3 p x vw False = select2 p x vw otherwise

select4 p x vw = select3 p x vw (p x)

The following Function with conditions
undefined 
 | False
 = undefined

is transformed to
undefined  = undefined1

undefined0 True = undefined

undefined1  = undefined0 False



↳ HASKELL
  ↳ IPR
    ↳ HASKELL
      ↳ BR
        ↳ HASKELL
          ↳ COR
HASKELL
              ↳ Narrow

mainModule List
  (partition :: (a  ->  Bool ->  [a ->  ([a],[a]))

module List where
  import qualified Maybe
import qualified Prelude

  partition :: (a  ->  Bool ->  [a ->  ([a],[a])
partition p xs foldr (select p) ([],[]) xs

  
select p x vw select4 p x vw

  
select0 (ts,fsts

  
select1 (ts,fsfs

  
select2 p x vw True (select0 vw,x : select1 vw)

  
select3 p x vw True (x : select0 vw,select1 vw)
select3 p x vw False select2 p x vw otherwise

  
select4 p x vw select3 p x vw (p x)


module Maybe where
  import qualified List
import qualified Prelude



Haskell To QDPs


↳ HASKELL
  ↳ IPR
    ↳ HASKELL
      ↳ BR
        ↳ HASKELL
          ↳ COR
            ↳ HASKELL
              ↳ Narrow
QDP
                  ↳ QDPSizeChangeProof

Q DP problem:
The TRS P consists of the following rules:

new_foldr(vz3, :(vz40, vz41), ba) → new_foldr(vz3, vz41, ba)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs: